package fuzion24.device.vulnerability.util;

import android.content.Context;
import android.content.res.TypedArray;

import com.nowsecure.android.vts.R;

public class GenericUtils {

    private GenericUtils() {
    }

    public static int getActionBarHeight(Context context) {
        final TypedArray styledAttributes = context.getTheme().obtainStyledAttributes(new int[]{R.attr.actionBarSize});
        int toolbarHeight = (int) styledAttributes.getDimension(0, 0);

        styledAttributes.recycle();

        return toolbarHeight;
    }

}
